package com.obtk.byproperty.service.impl;

import com.obtk.byproperty.dao.ComplaintMapper;
import com.obtk.byproperty.pojo.Complaint;
import com.obtk.byproperty.service.ComplaintService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ComplaintServiceImpl implements ComplaintService {

    @Autowired
    private ComplaintMapper complaintMapper;

    @Override
    public boolean add(Complaint complaint) {
        int row = complaintMapper.insert(complaint);

        if(row>0){
            return true;
        }
        return false;
    }
}
